package com.content.scaffold.common.mybatis;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


/**
 * @author luowenliang
 */
public class SuperServiceImpl<M extends SuperMapper<T>, T extends BaseEntity> extends ServiceImpl<M, T> {


    public IPage<T> pageList(SuperQuery superQuery) {

        return this.baseMapper.pageList(superQuery.getPageEntity(), superQuery.getParam());
    }


    public IPage<T> selectPage(CommonQuery superQuery) {
        return this.baseMapper.selectPage(superQuery.getPageEntity(),superQuery.queryParams);
    }

}
